package com.dstz.demo.rest.controller;

import com.dstz.base.rest.BaseController;
import com.dstz.demo.core.manager.ProjectStageManager;
import com.dstz.demo.core.model.ProjectStage;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/sys/ProjectStage")
public class ProjectStageController extends BaseController<ProjectStage> {
    @Resource
    ProjectStageManager projectStageManager;
    @Override
    protected String getModelDesc() {
        return null;
    }
    @GetMapping("/findli/{id}")
    public List<ProjectStage> findli(@PathVariable("id") String id){
        return projectStageManager.findli(id);
    }
}
